import request from '@/utils/request';
export const getSearchApi = (keyword: string) => {
  return request({ url: `/v1_0/suggestion`, params: { q: keyword } });
};

export const getSearchResultApi = (q: string, page?: number) => {
  return request({ url: `/v1_0/search`, params: { q, page } });
};
